﻿#include "dragable_shadow_widget.h"

DragableShadowWidget::DragableShadowWidget(QWidget *parent)
    : ShadowWidget(parent)
{
    initUI();
}

DragableShadowWidget::~DragableShadowWidget()
{
    deleteUI();
}

void DragableShadowWidget::initUI()
{
    /* 创建管理器 */
    m_frameless_helper = new FramelessHelper;
    m_frameless_helper->activateOn(this);
    m_frameless_helper->setWidgetMovable(true);
    m_frameless_helper->useRubberBandOnResize(true);
}

void DragableShadowWidget::deleteUI()
{
    delete m_frameless_helper;
}
